home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / appshell / nsIXULWindow.h < prev   
C/C++ Source or Header  |  2006-05-08  |  14KB  |  345 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXULWindow.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXULWindow_h__
  6. #define __gen_nsIXULWindow_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDocShell; /* forward declaration */
  18.  
  19. class nsIDocShellTreeItem; /* forward declaration */
  20.  
  21. class nsIAppShell; /* forward declaration */
  22.  
  23. class nsIXULBrowserWindow; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsIXULWindow */
  27. #define NS_IXULWINDOW_IID_STR "b6c2f9e1-53a0-45f2-a2b8-fe37861fe8a8"
  28.  
  29. #define NS_IXULWINDOW_IID \
  30.   {0xb6c2f9e1, 0x53a0, 0x45f2, \
  31.     { 0xa2, 0xb8, 0xfe, 0x37, 0x86, 0x1f, 0xe8, 0xa8 }}
  32.  
  33. class NS_NO_VTABLE nsIXULWindow : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULWINDOW_IID)
  37.  
  38.   /**
  39.    * The docshell owning the XUL for this window.
  40.    */
  41.   /* readonly attribute nsIDocShell docShell; */
  42.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) = 0;
  43.  
  44.   /**
  45.    * Indicates if this window is instrinsically sized.    
  46.    */
  47.   /* attribute boolean intrinsicallySized; */
  48.   NS_IMETHOD GetIntrinsicallySized(PRBool *aIntrinsicallySized) = 0;
  49.   NS_IMETHOD SetIntrinsicallySized(PRBool aIntrinsicallySized) = 0;
  50.  
  51.   /**
  52.    * The primary content shell.  
  53.    *
  54.    * Note that this is a docshell tree item and therefore can not be assured of
  55.    * what object it is. It could be an editor, a docshell, or a browser object.
  56.    * Or down the road any other object that supports being a DocShellTreeItem
  57.    * Query accordingly to determine the capabilities.
  58.    */
  59.   /* readonly attribute nsIDocShellTreeItem primaryContentShell; */
  60.   NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) = 0;
  61.  
  62.   /**
  63.    * The content shell specified by the supplied id.
  64.    *
  65.    * Note that this is a docshell tree item and therefore can not be assured of
  66.    * what object it is.  It could be an editor, a docshell, or a browser object.
  67.    * Or down the road any other object that supports being a DocShellTreeItem
  68.    * Query accordingly to determine the capabilities.
  69.    */
  70.   /* nsIDocShellTreeItem getContentShellById (in wstring ID); */
  71.   NS_IMETHOD GetContentShellById(const PRUnichar *ID, nsIDocShellTreeItem **_retval) = 0;
  72.  
  73.   /**
  74.    * Tell this window that it has picked up a child XUL window
  75.    * @param aChild the child window being added
  76.    */
  77.   /* void addChildWindow (in nsIXULWindow aChild); */
  78.   NS_IMETHOD AddChildWindow(nsIXULWindow *aChild) = 0;
  79.  
  80.   /**
  81.    * Tell this window that it has lost a child XUL window
  82.    * @param aChild the child window being removed
  83.    */
  84.   /* void removeChildWindow (in nsIXULWindow aChild); */
  85.   NS_IMETHOD RemoveChildWindow(nsIXULWindow *aChild) = 0;
  86.  
  87.   /**
  88.    * Move the window to a centered position.
  89.    * @param aRelative the window relative to which the window is moved.
  90.    *                  See screen parameter for details. if null, the
  91.    *                  window is centered relative to the main screen.
  92.    * @param aScreen   PR_TRUE to center the window relative to the screen
  93.    *                  containing aRelative. PR_FALSE to center it relative
  94.    *                  to aRelative itself.
  95.    * @param aAlert    PR_TRUE to move the window to an alert position,
  96.    *                  generally centered horizontally and 1/3 down from the top.
  97.    */
  98.   /* void center (in nsIXULWindow aRelative, in boolean aScreen, in boolean aAlert); */
  99.   NS_IMETHOD Center(nsIXULWindow *aRelative, PRBool aScreen, PRBool aAlert) = 0;
  100.  
  101.   /**
  102.    * Shows the window as a modal window. That is, ensures that it is visible
  103.    * and runs a local event loop, exiting only once the window has been closed.
  104.    */
  105.   /* void showModal (); */
  106.   NS_IMETHOD ShowModal(void) = 0;
  107.  
  108.   enum { lowestZ = 0U };
  109.  
  110.   enum { loweredZ = 4U };
  111.  
  112.   enum { normalZ = 5U };
  113.  
  114.   enum { raisedZ = 6U };
  115.  
  116.   enum { highestZ = 9U };
  117.  
  118.   /* attribute unsigned long zLevel; */
  119.   NS_IMETHOD GetZLevel(PRUint32 *aZLevel) = 0;
  120.   NS_IMETHOD SetZLevel(PRUint32 aZLevel) = 0;
  121.  
  122.   /**
  123.    * contextFlags are from nsIWindowCreator2
  124.    */
  125.   /* attribute PRUint32 contextFlags; */
  126.   NS_IMETHOD GetContextFlags(PRUint32 *aContextFlags) = 0;
  127.   NS_IMETHOD SetContextFlags(PRUint32 aContextFlags) = 0;
  128.  
  129.   /* attribute PRUint32 chromeFlags; */
  130.   NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) = 0;
  131.   NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) = 0;
  132.  
  133.   /**
  134.    * Create a new window.
  135.    * @param aChromeFlags see nsIWebBrowserChrome
  136.    * @return the newly minted window
  137.    */
  138.   /* nsIXULWindow createNewWindow (in PRInt32 aChromeFlags, in nsIAppShell aAppShell); */
  139.   NS_IMETHOD CreateNewWindow(PRInt32 aChromeFlags, nsIAppShell *aAppShell, nsIXULWindow **_retval) = 0;
  140.  
  141.   /* attribute nsIXULBrowserWindow XULBrowserWindow; */
  142.   NS_IMETHOD GetXULBrowserWindow(nsIXULBrowserWindow * *aXULBrowserWindow) = 0;
  143.   NS_IMETHOD SetXULBrowserWindow(nsIXULBrowserWindow * aXULBrowserWindow) = 0;
  144.  
  145. };
  146.  
  147. /* Use this macro when declaring classes that implement this interface. */
  148. #define NS_DECL_NSIXULWINDOW \
  149.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell); \
  150.   NS_IMETHOD GetIntrinsicallySized(PRBool *aIntrinsicallySized); \
  151.   NS_IMETHOD SetIntrinsicallySized(PRBool aIntrinsicallySized); \
  152.   NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell); \
  153.   NS_IMETHOD GetContentShellById(const PRUnichar *ID, nsIDocShellTreeItem **_retval); \
  154.   NS_IMETHOD AddChildWindow(nsIXULWindow *aChild); \
  155.   NS_IMETHOD RemoveChildWindow(nsIXULWindow *aChild); \
  156.   NS_IMETHOD Center(nsIXULWindow *aRelative, PRBool aScreen, PRBool aAlert); \
  157.   NS_IMETHOD ShowModal(void); \
  158.   NS_IMETHOD GetZLevel(PRUint32 *aZLevel); \
  159.   NS_IMETHOD SetZLevel(PRUint32 aZLevel); \
  160.   NS_IMETHOD GetContextFlags(PRUint32 *aContextFlags); \
  161.   NS_IMETHOD SetContextFlags(PRUint32 aContextFlags); \
  162.   NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags); \
  163.   NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags); \
  164.   NS_IMETHOD CreateNewWindow(PRInt32 aChromeFlags, nsIAppShell *aAppShell, nsIXULWindow **_retval); \
  165.   NS_IMETHOD GetXULBrowserWindow(nsIXULBrowserWindow * *aXULBrowserWindow); \
  166.   NS_IMETHOD SetXULBrowserWindow(nsIXULBrowserWindow * aXULBrowserWindow); 
  167.  
  168. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  169. #define NS_FORWARD_NSIXULWINDOW(_to) \
  170.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return _to GetDocShell(aDocShell); } \
  171.   NS_IMETHOD GetIntrinsicallySized(PRBool *aIntrinsicallySized) { return _to GetIntrinsicallySized(aIntrinsicallySized); } \
  172.   NS_IMETHOD SetIntrinsicallySized(PRBool aIntrinsicallySized) { return _to SetIntrinsicallySized(aIntrinsicallySized); } \
  173.   NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) { return _to GetPrimaryContentShell(aPrimaryContentShell); } \
  174.   NS_IMETHOD GetContentShellById(const PRUnichar *ID, nsIDocShellTreeItem **_retval) { return _to GetContentShellById(ID, _retval); } \
  175.   NS_IMETHOD AddChildWindow(nsIXULWindow *aChild) { return _to AddChildWindow(aChild); } \
  176.   NS_IMETHOD RemoveChildWindow(nsIXULWindow *aChild) { return _to RemoveChildWindow(aChild); } \
  177.   NS_IMETHOD Center(nsIXULWindow *aRelative, PRBool aScreen, PRBool aAlert) { return _to Center(aRelative, aScreen, aAlert); } \
  178.   NS_IMETHOD ShowModal(void) { return _to ShowModal(); } \
  179.   NS_IMETHOD GetZLevel(PRUint32 *aZLevel) { return _to GetZLevel(aZLevel); } \
  180.   NS_IMETHOD SetZLevel(PRUint32 aZLevel) { return _to SetZLevel(aZLevel); } \
  181.   NS_IMETHOD GetContextFlags(PRUint32 *aContextFlags) { return _to GetContextFlags(aContextFlags); } \
  182.   NS_IMETHOD SetContextFlags(PRUint32 aContextFlags) { return _to SetContextFlags(aContextFlags); } \
  183.   NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) { return _to GetChromeFlags(aChromeFlags); } \
  184.   NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) { return _to SetChromeFlags(aChromeFlags); } \
  185.   NS_IMETHOD CreateNewWindow(PRInt32 aChromeFlags, nsIAppShell *aAppShell, nsIXULWindow **_retval) { return _to CreateNewWindow(aChromeFlags, aAppShell, _retval); } \
  186.   NS_IMETHOD GetXULBrowserWindow(nsIXULBrowserWindow * *aXULBrowserWindow) { return _to GetXULBrowserWindow(aXULBrowserWindow); } \
  187.   NS_IMETHOD SetXULBrowserWindow(nsIXULBrowserWindow * aXULBrowserWindow) { return _to SetXULBrowserWindow(aXULBrowserWindow); } 
  188.  
  189. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  190. #define NS_FORWARD_SAFE_NSIXULWINDOW(_to) \
  191.   NS_IMETHOD GetDocShell(nsIDocShell * *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocShell(aDocShell); } \
  192.   NS_IMETHOD GetIntrinsicallySized(PRBool *aIntrinsicallySized) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIntrinsicallySized(aIntrinsicallySized); } \
  193.   NS_IMETHOD SetIntrinsicallySized(PRBool aIntrinsicallySized) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntrinsicallySized(aIntrinsicallySized); } \
  194.   NS_IMETHOD GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrimaryContentShell(aPrimaryContentShell); } \
  195.   NS_IMETHOD GetContentShellById(const PRUnichar *ID, nsIDocShellTreeItem **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentShellById(ID, _retval); } \
  196.   NS_IMETHOD AddChildWindow(nsIXULWindow *aChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddChildWindow(aChild); } \
  197.   NS_IMETHOD RemoveChildWindow(nsIXULWindow *aChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChildWindow(aChild); } \
  198.   NS_IMETHOD Center(nsIXULWindow *aRelative, PRBool aScreen, PRBool aAlert) { return !_to ? NS_ERROR_NULL_POINTER : _to->Center(aRelative, aScreen, aAlert); } \
  199.   NS_IMETHOD ShowModal(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowModal(); } \
  200.   NS_IMETHOD GetZLevel(PRUint32 *aZLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetZLevel(aZLevel); } \
  201.   NS_IMETHOD SetZLevel(PRUint32 aZLevel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetZLevel(aZLevel); } \
  202.   NS_IMETHOD GetContextFlags(PRUint32 *aContextFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContextFlags(aContextFlags); } \
  203.   NS_IMETHOD SetContextFlags(PRUint32 aContextFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContextFlags(aContextFlags); } \
  204.   NS_IMETHOD GetChromeFlags(PRUint32 *aChromeFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChromeFlags(aChromeFlags); } \
  205.   NS_IMETHOD SetChromeFlags(PRUint32 aChromeFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChromeFlags(aChromeFlags); } \
  206.   NS_IMETHOD CreateNewWindow(PRInt32 aChromeFlags, nsIAppShell *aAppShell, nsIXULWindow **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewWindow(aChromeFlags, aAppShell, _retval); } \
  207.   NS_IMETHOD GetXULBrowserWindow(nsIXULBrowserWindow * *aXULBrowserWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetXULBrowserWindow(aXULBrowserWindow); } \
  208.   NS_IMETHOD SetXULBrowserWindow(nsIXULBrowserWindow * aXULBrowserWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetXULBrowserWindow(aXULBrowserWindow); } 
  209.  
  210. #if 0
  211. /* Use the code below as a template for the implementation class for this interface. */
  212.  
  213. /* Header file */
  214. class nsXULWindow : public nsIXULWindow
  215. {
  216. public:
  217.   NS_DECL_ISUPPORTS
  218.   NS_DECL_NSIXULWINDOW
  219.  
  220.   nsXULWindow();
  221.  
  222. private:
  223.   ~nsXULWindow();
  224.  
  225. protected:
  226.   /* additional members */
  227. };
  228.  
  229. /* Implementation file */
  230. NS_IMPL_ISUPPORTS1(nsXULWindow, nsIXULWindow)
  231.  
  232. nsXULWindow::nsXULWindow()
  233. {
  234.   /* member initializers and constructor code */
  235. }
  236.  
  237. nsXULWindow::~nsXULWindow()
  238. {
  239.   /* destructor code */
  240. }
  241.  
  242. /* readonly attribute nsIDocShell docShell; */
  243. NS_IMETHODIMP nsXULWindow::GetDocShell(nsIDocShell * *aDocShell)
  244. {
  245.     return NS_ERROR_NOT_IMPLEMENTED;
  246. }
  247.  
  248. /* attribute boolean intrinsicallySized; */
  249. NS_IMETHODIMP nsXULWindow::GetIntrinsicallySized(PRBool *aIntrinsicallySized)
  250. {
  251.     return NS_ERROR_NOT_IMPLEMENTED;
  252. }
  253. NS_IMETHODIMP nsXULWindow::SetIntrinsicallySized(PRBool aIntrinsicallySized)
  254. {
  255.     return NS_ERROR_NOT_IMPLEMENTED;
  256. }
  257.  
  258. /* readonly attribute nsIDocShellTreeItem primaryContentShell; */
  259. NS_IMETHODIMP nsXULWindow::GetPrimaryContentShell(nsIDocShellTreeItem * *aPrimaryContentShell)
  260. {
  261.     return NS_ERROR_NOT_IMPLEMENTED;
  262. }
  263.  
  264. /* nsIDocShellTreeItem getContentShellById (in wstring ID); */
  265. NS_IMETHODIMP nsXULWindow::GetContentShellById(const PRUnichar *ID, nsIDocShellTreeItem **_retval)
  266. {
  267.     return NS_ERROR_NOT_IMPLEMENTED;
  268. }
  269.  
  270. /* void addChildWindow (in nsIXULWindow aChild); */
  271. NS_IMETHODIMP nsXULWindow::AddChildWindow(nsIXULWindow *aChild)
  272. {
  273.     return NS_ERROR_NOT_IMPLEMENTED;
  274. }
  275.  
  276. /* void removeChildWindow (in nsIXULWindow aChild); */
  277. NS_IMETHODIMP nsXULWindow::RemoveChildWindow(nsIXULWindow *aChild)
  278. {
  279.     return NS_ERROR_NOT_IMPLEMENTED;
  280. }
  281.  
  282. /* void center (in nsIXULWindow aRelative, in boolean aScreen, in boolean aAlert); */
  283. NS_IMETHODIMP nsXULWindow::Center(nsIXULWindow *aRelative, PRBool aScreen, PRBool aAlert)
  284. {
  285.     return NS_ERROR_NOT_IMPLEMENTED;
  286. }
  287.  
  288. /* void showModal (); */
  289. NS_IMETHODIMP nsXULWindow::ShowModal()
  290. {
  291.     return NS_ERROR_NOT_IMPLEMENTED;
  292. }
  293.  
  294. /* attribute unsigned long zLevel; */
  295. NS_IMETHODIMP nsXULWindow::GetZLevel(PRUint32 *aZLevel)
  296. {
  297.     return NS_ERROR_NOT_IMPLEMENTED;
  298. }
  299. NS_IMETHODIMP nsXULWindow::SetZLevel(PRUint32 aZLevel)
  300. {
  301.     return NS_ERROR_NOT_IMPLEMENTED;
  302. }
  303.  
  304. /* attribute PRUint32 contextFlags; */
  305. NS_IMETHODIMP nsXULWindow::GetContextFlags(PRUint32 *aContextFlags)
  306. {
  307.     return NS_ERROR_NOT_IMPLEMENTED;
  308. }
  309. NS_IMETHODIMP nsXULWindow::SetContextFlags(PRUint32 aContextFlags)
  310. {
  311.     return NS_ERROR_NOT_IMPLEMENTED;
  312. }
  313.  
  314. /* attribute PRUint32 chromeFlags; */
  315. NS_IMETHODIMP nsXULWindow::GetChromeFlags(PRUint32 *aChromeFlags)
  316. {
  317.     return NS_ERROR_NOT_IMPLEMENTED;
  318. }
  319. NS_IMETHODIMP nsXULWindow::SetChromeFlags(PRUint32 aChromeFlags)
  320. {
  321.     return NS_ERROR_NOT_IMPLEMENTED;
  322. }
  323.  
  324. /* nsIXULWindow createNewWindow (in PRInt32 aChromeFlags, in nsIAppShell aAppShell); */
  325. NS_IMETHODIMP nsXULWindow::CreateNewWindow(PRInt32 aChromeFlags, nsIAppShell *aAppShell, nsIXULWindow **_retval)
  326. {
  327.     return NS_ERROR_NOT_IMPLEMENTED;
  328. }
  329.  
  330. /* attribute nsIXULBrowserWindow XULBrowserWindow; */
  331. NS_IMETHODIMP nsXULWindow::GetXULBrowserWindow(nsIXULBrowserWindow * *aXULBrowserWindow)
  332. {
  333.     return NS_ERROR_NOT_IMPLEMENTED;
  334. }
  335. NS_IMETHODIMP nsXULWindow::SetXULBrowserWindow(nsIXULBrowserWindow * aXULBrowserWindow)
  336. {
  337.     return NS_ERROR_NOT_IMPLEMENTED;
  338. }
  339.  
  340. /* End of implementation class template. */
  341. #endif
  342.  
  343.  
  344. #endif /* __gen_nsIXULWindow_h__ */
  345.